﻿@model TJBHJJ.Models.Admin
@{
    ViewBag.Title = "修改用户";
    int pageindex = (int)ViewData["pageIndex"];

}
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs();
    });
</script>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">案例列表</a></li>
    </ul>
    <div id="tabs-1">
        @using (Html.BeginForm("EditUser", "Manager"FormMethod.Post))
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.UserName)
            @Html.HiddenFor(model => model.RouleId)
            @Html.HiddenFor(model => model.LoginCount)
            @Html.HiddenFor(model => model.LastLoginTime)
            @Html.HiddenFor(model => model.LastLoginIP)
            @Html.HiddenFor(model => model.CreatTime)
            <table>
                <tr>
                    <td style="width:100px">
                        用户名：
                    </td>
                    <td style="width:200px">
                        @Html.DisplayFor(model => model.UserName)
                        @Html.ValidationMessageFor(model => model.UserName)
                    </td>
                </tr>
                <tr>
                    <td>
                        密码：
                    </td>
                    <td>
                        @Html.PasswordFor(model => model.PassWord)
                        @Html.ValidationMessageFor(model => model.PassWord)
                    </td>
                </tr>
                <tr>
                    <td>
                        确认密码：
                    </td>
                    <td>
                        @Html.PasswordFor(model => model.ConfirmPassword)
                        @Html.ValidationMessageFor(model => model.ConfirmPassword)
                    </td>
                </tr>
            </table>
            <p>
                <input type="submit" value="保存" />
            </p>
        }
        <div>
            @Html.ActionLink("返回列表", "ListUsers", new { page = pageindex })
        </div>
    </div>
</div>
